﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace PrjAssessModels.BaseModels
{
    public class ProjectExtent:BaseEntity
    {
        [Required]
        [Display(Name = "项目编号")]
        public string PrjId { get; set; }

        [Display(Name = "工作量系数")]
        public double WorkRatio
        {
            get
            {
                return this.SupportNo + this.EnviComplicate + this.OperateMethod;
            }
        }

        [Required]
        [Display(Name = "支撑数")]
        public int SupportNo { get; set; }

        [Required]
        [Display(Name = "环境复杂")]
        public double EnviComplicate { get; set; }

        [Required]
        [Display(Name = "施作方式")]
        public double OperateMethod { get; set; }


        [Display(Name = "工程综合系数")]
        public double PrjRatio
        {
            get
            {
                return this.RegionRatio * this.ComplicateRatio * this.SurveyTypeRatio * this.TeamRatio * this.ScaleRatio;
            }
        }

        [Required]
        [Display(Name = "地域系数")]
        public double RegionRatio { get; set; }

        [Required]
        [Display(Name = "复杂系数")]
        public double ComplicateRatio { get; set; }

        [Required]
        [Display(Name = "监测类型系数")]
        public double SurveyTypeRatio { get; set; }

        [Required]
        [Display(Name = "班组折减率")]
        public double TeamRatio { get; set; }

        [Required]
        [Display(Name = "规模效应递减")]
        public double ScaleRatio { get; set; }

        [Required]
        [Display(Name = "材料采购系数")]
        public double MaterialPurchaseRatio { get; set; }


    }
}
